package com.jxk.consumer.fein;

import com.jxk.common.entity.User;
import com.jxk.consumer.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "provider"/*,configuration = FeignConfiguration. class*/,fallback = UserRemoteClientFallback.class,fallbackFactory = UserRemoteClientFallbackFactory.class)
public interface UserRemoteClient {
    @GetMapping("/user/selectOne")
    public User selectOne(@RequestParam("id") Integer id);
    @GetMapping("/user/hello")
    public String hello();
}